﻿@namespace CyssBlazor.Shared.Components
@inherits PictureBase

<div>
    <img src="@ImageUrl" style="height:@(Height)px;width:@(Width)px" />
</div>

@code
{
 


    public override async Task SetParametersAsync(ParameterView parameters)
    {
        var newPictureId = parameters.GetValueOrDefault<int>(nameof(this.PictureId));
        var oldPictureId = this.PictureId;
        await base.SetParametersAsync(parameters);
        if (newPictureId != oldPictureId)
        {
            await LoadPicture();
        }
    }

   
}